import 'babel-polyfill'
import React from 'react'
import {render} from 'react-dom'
import {BrowserRouter} from 'react-router-dom'
import 'antd/dist/antd.css'
import './common/style/index.scss'
import App from './app'
import {createStore} from 'redux'
import {Provider} from 'react-redux'
import reducers from './reducers'

const store = createStore(reducers)

const rootElement = document.getElementById('root')

render(
  <BrowserRouter>
    <Provider store={store}>
      <App store={store} />
    </Provider>
  </BrowserRouter>, rootElement)
